package com.java80.springmall.cloud.product.consumer.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import com.java80.springmall.cloud.product.consumer.entity.Product;
import com.java80.springmall.cloud.product.consumer.fallback.ProductFallBack;

@FeignClient(value="mall-product-provider",fallback=ProductFallBack.class)
public interface ProductService {
	@GetMapping("/product/findAll")
	public List<Product> findAll( );
}
